
package com.lechuang.member.controller;


import com.lechuang.common.result.Result;
import com.lechuang.member.manager.MemberStarLevelManager;
import com.lechuang.member.vo.MemberStarLevelVo;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.extern.log4j.Log4j2;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/startLevel")
@Log4j2
@Tag(name = "会员星级类")
public class MemberStartLevelController {

    @Resource
    private MemberStarLevelManager memberStartLevelManager;


    @Operation(summary = "会员星级列表查询")
    @PostMapping("/queryList")
    public Result<List<MemberStarLevelVo>> queryList(){
        log.info("会员星级列表------");
        List<MemberStarLevelVo> memberStartLevelVoList  = memberStartLevelManager.list();
        return Result.success(memberStartLevelVoList);
    }
}
